cast away the constness in the call to free().
authorManish Singh <yosh@gimp.org>
Sun, 20 Mar 2005 07:53:16 +0000 (07:53 +0000)
committerManish Singh <yosh@src.gnome.org>
Sun, 20 Mar 2005 07:53:16 +0000 (07:53 +0000)
Sat Mar 19 23:52:33 2005  Manish Singh  <yosh@gimp.org>

        * xdgmimeglob.c (_xdg_glob_hash_insert_text): cast away the constness
        in the call to free().

gtk/xdgmime/ChangeLog
gtk/xdgmime/xdgmimeglob.c

index 3bd89fed9a0eabef9195968c1b1a558846ade4b8..02bf61bdace200d3186df97d4a86931a33c0f286 100644 (file)
@@ -1,3 +1,8 @@
+Sat Mar 19 23:52:33 2005  Manish Singh  <yosh@gimp.org>
+
+       * xdgmimeglob.c (_xdg_glob_hash_insert_text): cast away the constness
+       in the call to free().
+
 2005-03-20  Matthias Clasen  <mclasen@redhat.com>
 
        * xdgmimeglob.c (_xdg_glob_hash_insert_text): Don't 
index fb89e82023c0fb8c5a6fb9016070104e8c3cf2d3..e99eb834dfdfc794dcdb22aafd5a35878ce5683f 100644 (file)
@@ -242,7 +242,7 @@ _xdg_glob_hash_insert_text (XdgGlobHashNode *glob_hash_node,
   if (*text == '\000')
     {
       if (node->mime_type)
-       free (node->mime_type);
+       free ((void *) node->mime_type);
       node->mime_type = mime_type;
     }
   else